package com.lebang.mapper;

import com.lebang.domain.CencesEmailData;
import com.lebang.example.CencesEmailDataExample;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.lebang.configuration.datasource.DataSource;
import org.apache.ibatis.annotations.Param;

/**
 * CencesEmailDataMapper继承基类
 */
@Mapper
public interface CencesEmailDataMapper extends MyBatisBaseDao<CencesEmailData, Integer, CencesEmailDataExample> {

    @DataSource("commonDB")
CencesEmailData sumByTime(@Param("time") int time);

    @DataSource("commonDB")
int deleteByTimeAndAppId(@Param("appId") Integer appId, @Param("time") int time);

    @DataSource("commonDB")
int insertEmailData(CencesEmailData cencesEmailData);
}